import { defineComponent } from "vue";

const PropsType = {
  msg: String,
  age: {
    type: Number,
    required: true,
  },
} as const;

export default defineComponent({
  name: "HelloWorld",
  props: PropsType,
  setup(props) {
    return () => (
      <>
        <h2>{props.msg}</h2>
        <h2>{props.age}</h2>
      </>
    );
  },
});
